package _09_2模板方法改写收银系统;


import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        GoldenCard g = new GoldenCard("vip001",10000);

        //调用支付功能
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入支付金额：");
        double money = sc.nextDouble();
        g.pay(money);
    }
}
